package com.opgea.crm.domain.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.opgea.crm.common.SetupsAttributeQualifier;
import com.opgea.crm.common.SetupsModuleQualifier;

@Entity
@Table(name = "setupvalue")
public class SetupsValue implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue
	@Column(name = "id")
	private Long id;
	@Column(name = "fieldvalue")
	private String fieldValue;
	
	@Enumerated(EnumType.ORDINAL)
	@Column(name="moduleid")
	private SetupsModuleQualifier setupsModuleQualifier;
	
	@Enumerated(EnumType.ORDINAL)
	@Column(name="modulepropid")
	private SetupsAttributeQualifier setupsAttributeQualifier;
	
	
	
		public SetupsValue() {
		super();
	}



		public SetupsValue(Long id, String fieldValue) {
		
			this.id = id;
			this.fieldValue = fieldValue;
		}



		 



		public Long getId() {
			return id;
		}



		public void setId(Long id) {
			this.id = id;
		}



		public String getFieldValue() {
			return fieldValue;
		}



		public void setFieldValue(String fieldValue) {
			this.fieldValue = fieldValue;
		}



		public SetupsModuleQualifier getSetupsModuleQualifier() {
			return setupsModuleQualifier;
		}



		public void setSetupsModuleQualifier(SetupsModuleQualifier setupsModuleQualifier) {
			this.setupsModuleQualifier = setupsModuleQualifier;
		}



		public SetupsAttributeQualifier getSetupsAttributeQualifier() {
			return setupsAttributeQualifier;
		}



		public void setSetupsAttributeQualifier(
				SetupsAttributeQualifier setupsAttributeQualifier) {
			this.setupsAttributeQualifier = setupsAttributeQualifier;
		}

		
	
}
